Socket
Socket
Sign inDemoInstall

chutzpah

Package Overview
Dependencies
69
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chutzpah

Run chutzpah test cases in watch mode


Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Welcome to Chutzpah-Watch

[![NPM version][npm-image]][npm-url] [![NPM downloads][downloads-image]][downloads-url] chutzpah-watch cli will run tests cases in watch mode. Whenever there is change in file it will run tests against it.

Installation

npm install chutzpah-watch -g

Features

  • Execute Typescript tests in watch mode
  • Supports all of the flags given in Chutzpah Command Line Options
  • Configurable and easy option to pass configs Chutzpah-Watch.json

Usage

Create Chutzpah-Watch.json file in your code base and then run below script.

 # Execute a script as: 
 chutzpah watch --config chutzpah-watch.json

Once you run script, it will show below message:

Watching all of the tests.ts files under below directories: ['dir1','dir2'...] Now if you change any test file and save, it will run the test automatically and display the result.

Chutzpah-Watch.json

JSON file with all of the parameters required to configure runing test in watch mode. Below is one sample for chutzpha-watch.json file. Supported CLI options can be found from Chutzpah Command Line Option

{
    "watchConfig": {
        "recursive": true,
        "filter": "(.tests|.spec).ts$"
    },
    "cliOptions": [
        "nologo",
        "openInBrowser chrome"
    ],
    "exePath": "C:/temp/Chutzpah.4.3.3/tools",
    "dirsToSkip": [
        "node_modules",
        "node_scripts",
        "interface",
        "lib"
    ]
}

Dependencies

Chutzpah needs to be installed please refer to CHUTZPAH OFFICIAL PAGE to download chutzpah at your desk. You can pass the chutzpah exe path in Chutzpah-Watch.json

How It Works

It scans the directory and filter outs the files based on the configurations given. Starts watching the changes on those files and whenever change detected then it executes chutzpah.console.exe /path changedfile.spec.ts

Please check Chutzpah Command Line Option already has flags which we can pass to run chutzpah in command line.

Keywords

FAQs

Last updated on 30 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc